package com.chanzany.state.case2;

/**
 * @Author ChanZany
 * @Date 2021/10/20 15:47
 * @Version 1.0
 */
public class ThreadStateTest {
    public static void main(String[] args) {
        ThreadContext context = new ThreadContext();
        context.start();
        context.getCPU();
        context.suspend();
        context.resume();
        context.getCPU();
        context.stop();
    }
}
